import styles from './index.module.scss';

type PropType = {
    icon: string,
    cssStyle?: object
}

const AliIcon = ({ icon, cssStyle }: PropType) => {
    return <svg className={styles.icon} aria-hidden="true"
        style={cssStyle ?? {}}
    >
        <use xlinkHref={`#${icon}`}></use>
    </svg>
}

export default AliIcon;